using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmBidOfferCollateral")]
    public class BidOfferCollateral
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BidOffColId", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public int BidOffColId { get; set; }

		[ForeignKey("ColType")]
		[DataMember, Display(Name = "ColTypeId", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<int> ColTypeId { get; set; }

		[DataMember, Display(Name = "BidOffColRefNo", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public string BidOffColRefNo { get; set; }

		[DataMember, Display(Name = "BidOffColAmount", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<double> BidOffColAmount { get; set; }

		[DataMember, Display(Name = "BidOffColDescr", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public string BidOffColDescr { get; set; }

		[ForeignKey("BidOff")]
		[DataMember, Display(Name = "BidOffId", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<int> BidOffId { get; set; }

		[DataMember, Display(Name = "ReceiptNo", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public string ReceiptNo { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.BidOfferCollateralResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual ICM.SysCollateralType ColType { get; set; }

        public virtual ICM.BidOffer BidOff { get; set; }

    }
}